package com.titanrise.crm.common.enums;

public enum RoleTypeEnum {
    Customer(0), Salesperson(1), Administrator(2);

    private final int value;

    RoleTypeEnum(int i) {
        this.value = i;
    }

    public int intValue() {
        return value;
    }

    public static RoleTypeEnum valueOf(int i) {
        switch (i) {
            case 0:
                return Customer;
            case 1:
                return Salesperson;
            case 2:
                return Administrator;
            default:
                throw new IllegalArgumentException("Invalid RoleType value: " + i);
        }
    }
}
